package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;

/**
 * 专家会商--会商实体类
 */
@TableName("t_consult")
public class ConsultBean {
    @TableId(value = "pk_conId",type = IdType.AUTO)
    private int conId;
    /*** 会商时间 */
    @TableField("f_conTime")
    private LocalDate conTime = LocalDate.now();
    /*** 会商人员 */
    @TableField("f_conMan")
    private String conMan;
    /*** 会商结果 */
    @TableField("f_conResult")
    private String conResult;

//    @TableField("fk_eventId")
//    private int evenId;
    @TableField(exist = false)
    private EventBean eventBean;


    @TableField("fk_eventId")
    private int eventId;

    public ConsultBean() {
    }

    public ConsultBean(String conMan, String conResult,int eventId) {
        this.conMan = conMan;
        this.conResult = conResult;
        this.eventId = eventId;
    }


    public int getConId() {
        return conId;
    }

    public void setConId(int conId) {
        this.conId = conId;
    }

    public int getEventId() {
        return eventId;
    }

    public void setEventId(int eventId) {
        this.eventId = eventId;
    }

    public LocalDate getConTime() {
        return conTime;
    }

    public void setConTime(LocalDate conTime) {
        this.conTime = conTime;
    }

    public String getConMan() {
        return conMan;
    }

    public void setConMan(String conMan) {
        this.conMan = conMan;
    }

    public String getConResult() {
        return conResult;
    }

    public void setConResult(String conResult) {
        this.conResult = conResult;
    }

    public EventBean getEventBean() {
        return eventBean;
    }

    public void setEventBean(EventBean eventBean) {
        this.eventBean = eventBean;
    }

    @Override
    public String toString() {
        return "ConsultBean{" +
                "conId=" + conId +
                ", conTime=" + conTime +
                ", conMan='" + conMan + '\'' +
                ", conResult='" + conResult + '\'' +
                ", eventBean=" + eventBean +
                ", eventId=" + eventId +
                '}';
    }
}
